package model

const K_TMPL_FIELD_INPUT  =`
<div class="layui-form-item">
	<label class="layui-form-label">#FieldTitle#</label>
	<div class="layui-input-block">
		<input type="text"
			   id="#FieldNameLow#"
			   name="#FieldNameLow#"
			   value="{{ data.detail.#FieldName# }}"
			   lay-verify="title" autocomplete="off" placeholder="" class="layui-input">
	</div>
</div>
`

const K_TMPL_FIELD_CHECK  =`
<div class="layui-form-item">
	<label class="layui-form-label">#FieldTitle#</label>
	<div class="layui-input-block">
		<input type="checkbox"
			   id="#FieldNameLow#"
			   name="#FieldNameLow#"
			   value="{{ data.detail.#FieldName# }}"
			   lay-skin="primary"
			   lay-filter=""
			   title="val1" checked>
	</div>
</div>
`

const K_TMPL_FIELD_RADIO =`
<div class="layui-form-item">
	<label class="layui-form-label">#FieldTitle#</label>
	<div class="layui-input-block">
		<input type="radio" name="#FieldNameLow#" value="1"  title="val1" {% if data.detail.#FieldName# == 1 %}checked=""{%endif%}>
		<input type="radio" name="#FieldNameLow#" value="2"  title="val2" {% if data.detail.#FieldName# == 2 %}checked=""{%endif%}>
	</div>
</div>
`

const K_TMPL_FIELD_SELECT=`
<div class="layui-form-item">
	<label class="layui-form-label">#FieldTitle#</label>
	<div class="layui-input-block">
		<select id="#FieldNameLow#" name="#FieldNameLow#">
			<option value="">请选择</option>
			<option value="1">1</option>
			<option value="2">2</option>
			<option value="3">3</option>
			<option value="3">4</option>
		</select>
	</div>
</div>
`

const K_TMPL_FIELD_TEXTAREA=`
<div class="layui-form-item">
	<label class="layui-form-label">#FieldTitle#</label>
	<div class="layui-input-block">
		<textarea id="#FieldNameLow#" name="#FieldNameLow#" placeholder="" class="layui-textarea">{{ data.detail.#FieldName# }}</textarea>
	</div>
</div>
`

const K_TMPL_FIELD_UPLOAD=`
<div class="layui-form-item">
	<label class="layui-form-label">#FieldTitle#</label>
	<div class="layui-input-block">
		<input type="hidden"
			   id="#FieldNameLow#"
			   name="#FieldNameLow#"
			   value="{{ data.detail.#FieldName# }}" />
		<div class="layui-upload-drag" id="upload-drag">
			<i class="layui-icon"></i>
			<p>点击上传图片</p>
			<img id="img-upload" src="{{ data.detail.#FieldName# }}" style="width: 100%">
		</div>
	</div>
</div>
`